import { defineStore } from 'pinia'
import pinia from '..'

export const useSettingStoreHooks = defineStore('settingStore', {
	state: () => ({
		breadcrumbArr: [] as string[]
	}),
	actions: {
		setBreadcrumbArr(arr: string[]) {
			this.breadcrumbArr = arr
		}
	}
})

export const useSettingStore = () => {
	return useSettingStoreHooks(pinia)
}
